<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
<h1>注解测试</h1>
基本注解
<hr>
<a href="monster/100/king">@PathVariable-路径变量 monster/100/king</a><br><br>
<a href="/requestHeader">@RequestHeader-获取http请求头</a><br><br>
<a href="/hi?name=rainbow&fruit=apple&fruit=pear&id=300">@RequestParam - 获取请求参数</a><br><br>
<a href="/cookie">@CookieValue - 获取cookie的值</a><br><br>
<a href="/login">@RequestAttribute-获取request域属性</a>

<hr>

<form action="/saves" method="post">
    姓名: <input type="text" value="name"><br>
    年龄: <input type="text" value="age"><br>
    <input type="submit" value="提交">
</form>
</body>
</html>